package arrage;

import java.util.ArrayList;
import java.util.Scanner;

public class homework3 {
    public static void main(String[] args) {
        ArrayList<String> as=new ArrayList<>();
        printlist(as);
    }
    public static void printlist(ArrayList<String> as)
    {
        Scanner sc=new Scanner(System.in);

        for (int i = 0; i < 4; i++) {
            as.add(sc.next());
        }
        System.out.print("{");
        for (int i = 0; i < 4; i++) {
            System.out.print(as.get(i));
            if(i!=3)
            {
                System.out.print("@");
            }
        }
        System.out.print("}");
    }
}
